package cn.edu.nenu.control;

import javax.ejb.Local;

import cn.edu.nenu.contract.dto.EmployeeDTO;
@Local
public interface SysControl {
	public String sayHello(String name);	
	/**
	 *  Checks if user name exists and the password fits. 
	 *  Precondition: No users are logged in.
	 *  @param username : String
	 *  @param password : String
	 *  @return EmployeeDTO - null if login failed
	 */
	public EmployeeDTO login(String username, String password);//DONE or ask dk, maryjane
	/**
	 *  Logs out user if any are logged in.
	 *  Post condition: No users are logged in.
	 */
	public void logout();//TODO ask dk why
}
